/**
 * <p>Copyright (c) 2010 by DRM. </p>
 */

package com.responsemeasure;

import android.app.Application;
import android.util.Log;

import com.responsemeasure.db.DataHelper;

/**
 * <p>
 * <b>CLASS:</b> com.android.drm.db.DRMApplication
 * </p>
 * 
 * ...........................................................................
 * <p>
 * <b>DESCRIPTION:</b><br/>
 * Application class.
 * </p>
 * 
 * ...........................................................................
 * <p>
 * <b>MODIFICATION HISTORY:</b>
 * <p>
 * [2010/07/29] emily gu: Initial version.
 * </p>
 * </p>
 * 
 * ...........................................................................
 * 
 * @author emily gu
 * @since 1.0
 */

public class DRMApplication extends Application {
	public static final String APP_NAME = "DRM";

	private DataHelper dataHelper;

	@Override
	public void onCreate() {
		super.onCreate();
		Log.d(APP_NAME, "APPLICATION onCreate");
		this.dataHelper = new DataHelper(this);
	}

	@Override
	public void onTerminate() {
		Log.d(APP_NAME, "APPLICATION onTerminate");
		super.onTerminate();
	}

	public DataHelper getDataHelper() {
		return this.dataHelper;
	}

	public void setDataHelper(DataHelper dataHelper) {
		this.dataHelper = dataHelper;
	}
}
